<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>OSSHOP页面提示</title>
            <style type="text/css">   
                *{
				    padding:0px;margin:0px;    
				    font-family: 'Lucida Grande','微软雅黑';
				    font-size: 12px;
				    list-style: none;
				    text-decoration: none;        
				}       
                body{
                     background-color: #F1F1F4;
                }
                #os_success_html,#os_error_html{
                    height: auto;
                    width: 462px;
                    top: 220px;
                    overflow: hidden;
                    margin:0px auto;
                    background-color:#fff;                    
                    padding-top: 15px;                   
                    -webkit-border-radius: 4px;
                    -moz-border-radius: 4px;
                    border-radius: 4px;
                    border:1px solid #eee;
                    position: relative;
                    -moz-box-shadow: 2px 2px 10px #909090;
                    -webkit-box-shadow: 2px 2px 10px #909090;
                    box-shadow:2px 2px 10px #909090;
                    border:1px solid #ccc;              
                }          
                #os_success_html h2{ 
                    height: 28px; 
                    color:#f6f6f6;
                    background-color:rgb(45, 216, 209);
                    font-size:15px; 
                    font-weight: bold; 
                    text-indent: 10px; 
                    line-height: 28px;
                    margin: 0px;
                    font-weight: bolder ;  
                    box-shadow:inset 0 0 10px #1F8681;
                }
                #os_success_html div{
                    padding:10px; 
                    font-size:14px; 
                    font-weight: bold;
                    color:#333;
                }
                #os_success_html div a{
                    color:royalblue;
                }
                #os_success_html div p{ 
                    border-bottom: solid 1px #dcdcdc;
                    padding-bottom: 10px; 
                    margin-bottom: 10px;
                    color: green;
                    text-align: center;
                    line-height: 40px;                   
                }
                #os_success_html div span {
                    color:#999; 
                    font-weight: normal;
                }
                #os_success_html div span a{
                    color:#757575;
                    text-decoration: none;
                }             
                #os_error_html h2{                     
                    height: 28px; 
                    color:#f6f6f6;
                    background-color:rgb(42, 151, 151);
                    font-size:15px; 
                    font-weight: bold; 
                    text-indent: 10px; 
                    line-height: 28px;
                    font-weight: bolder; 
                    box-shadow:inset 0 0 15px #1A6F6F;
                }
                #os_error_html div{
                    padding: 10px;                
                    font-size:14px; 
                    font-weight: bold;
                    color:#333;                
                }
                #os_error_html div a{
                    color:royalblue;
                }
                #os_error_html div p{ 
                    border-bottom: solid 1px #dcdcdc;
                    padding-bottom: 10px; 
                    margin-bottom: 10px;
                    color: red;
                    line-height: 30px;
                    word-wrap: break-word;
					word-break: break-all;
					text-indent:2em;
                }
                #os_error_html div span {
                    color:#999; 
                    font-weight: normal;
                }
                #os_error_html div span a{
                    color:#757575;
                    text-decoration: none;
                }
                #os_success_html div span .button:hover,#os_error_html div span .button:hover{
                    color:#fff;
                    text-shadow: 0 1px 0 #000;
                }
               .button:hover,.page a:hover{ 
				    background-color: #0282D4;
				    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(86,180,220)), to(rgb(0, 101, 205)));
				    background-image: -webkit-linear-gradient(top, rgb(86,180,220), rgb(0, 101, 205));
				    background-image: -moz-linear-gradient(top, rgb(86,180,220), rgb(0, 101, 205));
				    background-image: -o-linear-gradient(top, rgb(86,180,220), rgb(0, 101, 205));
				    background-image: -ms-linear-gradient(top, rgb(86,180,220), rgb(0, 101, 205));
				    background-image: linear-gradient(top, rgb(86,180,220), rgb(0, 101, 205));
				    color:#fff;
				    text-shadow: 0 1px 0 #000;
				}
				.page a{
				    color: #2B8DD5;
				}
				.button,.page a{   
				    height:25px;
				    line-height: 25px;
				    padding: 0px 15px;
				    display: inline-block;   
				    border: 1px solid #dcdcdc;
				    -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.1);
				    -moz-box-shadow: 0 1px 1px rgba(0,0,0,0.1);
				    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
				    -webkit-border-radius: 2px;
				    -moz-border-radius: 2px;
				    border-radius: 2px;
				    color: #666;
				    font-size: 11px;
				    /*渐变*/
				    background-image: -webkit-linear-gradient(top,#FEFEFE 0%,#EDEDED 100%);
				    background-image: -o-linear-gradient(top,#FEFEFE 0%,#EDEDED 100%);
				    background-image: -ms-linear-gradient(top,#FEFEFE 0%,#EDEDED 100%);
				    background-image: -moz-linear-gradient(top,#FEFEFE 0%,#EDEDED 100%);
				    cursor: pointer;
				    outline: none;
				    -webkit-transition: all 0.218s;  
				    background-color: #ececec;
				
				}
            </style>  
    </head>
    <body>    
             <?php if($status){?>   
            <div id="os_success_html">              
                <h2><?php echo $msgTitle?>：</h2>
                <div>
                    <p><?php echo $message?>&nbsp&nbsp&nbsp&nbsp</p>
                    <span>页面将在&nbsp;<span id="write_time"><?php echo $waitSecond?></span>&nbsp;秒钟后执行&nbsp;
                    		<?php 
                    			if($flagUrl){
                    		?>
                    			<a href="<?php echo $jumpUrl?>" class="button">跳转</a>&nbsp;或点击&nbsp;
                    			<a onclick="history.back();" class="button">返回之前</a>
                    		<?php }else{?>
                    			<a onclick="window.close();" class="button">关闭窗口</a>
                    		<?php }?>
                    		
                    </span>
                </div>
            </div>
         <?php }else{?>  
            <div id="os_error_html">         
                <h2><?php echo $msgTitle?>：</h2>
                <div>
                    <p><?php echo $message?>&nbsp&nbsp&nbsp&nbsp</p>
                     <span>页面将在&nbsp;<span id="write_time"><?php echo $waitSecond?></span>&nbsp;秒钟后执行&nbsp;
                    		<?php 
                    			if($flagUrl){
                    		?>
                    			<a href="<?php echo $jumpUrl?>" class="button">跳转</a>&nbsp;或点击&nbsp;
                    			<a onclick="history.back();" class="button">返回之前</a>
                    		<?php }else{?>
                    			<a onclick="window.close();" class="button">关闭窗口</a>
                    		<?php }?>
                    		
                    </span>
                </div>
            </div>
       <?php }?>
    </body>
</html> 

<script type="text/javascript">
window.onload=function(){
    var obj = document.getElementById('os_success_html') ? document.getElementById('os_success_html') : document.getElementById('os_error_html');
        var time = document.getElementById('write_time').innerHTML;
        var t = setInterval(function() {
            var nowtime = document.getElementById('write_time').innerHTML;
            document.getElementById('write_time').innerHTML = --time;
            if (nowtime <= 1) {
                clearInterval(t);
               <?php 
               	if($flagUrl){
               ?>
               		location.href = "<?php echo $flagUrl?>";
               <?php }else{?>
                	window.close();
                <?php }?>
            }
        }, 1000);
};

</script>